<ul class="nav navbar-nav">
    {% for parent in helper.getMenu(0) %}
    <li class="dropdown category-dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{parent.getName()}}</a>
        {% if helper.getMenu(parent.getId()) %}
        <ul class="dropdown-menu dropdown-menu-custom" role="menu">
            {% for child in helper.getMenu(parent.getId()) %}
            <li>{{ link_to("video/category?id=" ~ child.getId() , child.getName()) }}</li>
            {% endfor %}
        </ul>
        {% endif %}
    </li>
    {% endfor %}
</ul>